# Author:Zhang Yu
import logging
import os
base_path = os.path.abspath(os.path.dirname(__file__))
logging.basicConfig(level=logging.DEBUG,
                    format='%(asctime)s %(filename)s[line:%(lineno)d] %(levelname)s %(message)s',
                    datefmt=' %Y %b %d  %H:%M:%S',
                    filename=base_path+'/tmp/test.log',
                    filemode='w')


if __name__ == '__main__':
    print (base_path)